Skip to content

Update sqlglot requirement from <26.8.0,>=26.7.0 to >=26.7.0,<27.1.0 #4203

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Jul 8, 2025

Updates the requirements on sqlglot to permit the latest version.

Changelog

Sourced from sqlglot's changelog.

[v27.0.0] - 2025-07-07

💥 BREAKING CHANGES

... (truncated)

Commits
  • 1abd461 Chore: bump min. supported version to python 3.9 (#5353)
  • e705e8e Clean up Postgres ROUND logic
  • a3227de Feat!: improve transpilation of ROUND(x, y) to Postgres (#5368)
  • 2cce53d feat(optimizer)!: annotate type for LAG (#5371)
  • 800a82c Cleanup fabric tests
  • 1fd757e feat(fabric): Ensure TIMESTAMPTZ is used with AT TIME ZONE (#5362)
  • 47176ce feat(optimizer)!: annotate type for ENDS_WITH (#5370)
  • 5b59c16 feat(optimizer)!: annotate type for DATETIME (#5369)
  • e110ef4 feat(optimizer)!: annotate type for COVAR_SAMP (#5367)
  • c1e8677 feat(optimizer)!: annotate type for COVAR_POP (#5365)
  • Additional commits viewable in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies Pull requests that update a dependency file python Pull requests that update Python code labels Jul 8, 2025
@dependabot dependabot bot requested a review from a team as a code owner July 8, 2025 15:57
@dependabot dependabot bot added python Pull requests that update Python code dependencies Pull requests that update a dependency file labels Jul 8, 2025
Updates the requirements on [sqlglot](https://github.com/tobymao/sqlglot) to permit the latest version.
- [Changelog](https://github.com/tobymao/sqlglot/blob/main/CHANGELOG.md)
- [Commits](tobymao/sqlglot@v26.7.0...v27.0.0)

---
updated-dependencies:
- dependency-name: sqlglot
  dependency-version: 27.0.0
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot bot force-pushed the dependabot/pip/sqlglot-gte-26.7.0-and-lt-27.1.0 branch from 4845b17 to 7f35cbc Compare July 16, 2025 14:30
github-merge-queue bot pushed a commit that referenced this pull request Jul 16, 2025
## Changes

This PR updates the `sqlglot` requirement to allow the 27.0.0 release.
This release includes support for placeholders in SQL, a relatively new
syntax feature supported in DBR 15.2 (or Apache Spark 4.0).

SQL queries can be of the form:
```sql
SELECT 1 AS col1, 2 AS col2, 3 AS col3 FROM {sdf_system_columns} LIMIT 5
```
…where `sdf_system_columns` is passed as a keyword argument, for
example:
```python
sdf_system_columns = spark.read.table("system.information_schema.columns")
sdf_example = spark.sql("SELECT 1 AS col1, 2 AS col2, 3 AS col3 FROM {sdf_system_columns} LIMIT 5",
                        sdf_system_columns = sdf_system_columns)
```

Older versions of sqlgplot would fail on this with a parsing error, but
now it's parsed correctly but returns a `Placeholder` AST node as the
name of the table instead of a string. Given the complexity of handling
this properly, for now I've chosen to preserve the old behaviour: the
linter will mark the query as unsupported. (See
[es-1285042.py](https://github.com/databrickslabs/ucx/blob/e48281a67fbd9f9b80688a8fd08c0e6e19dab5c6/tests/unit/source_code/samples/functional/es-1285042.py)
for an example of this.)

### Linked issues

Closes #4203 

### Tests

- existing integration tests
- existing (+ 1 updated) unit tests
@asnare asnare closed this in #4227 Jul 16, 2025
Copy link
Contributor Author

dependabot bot commented on behalf of github Jul 16, 2025

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.

@dependabot dependabot bot deleted the dependabot/pip/sqlglot-gte-26.7.0-and-lt-27.1.0 branch July 16, 2025 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file python Pull requests that update Python code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

0 participants